package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    /**
     * 查询所有护理等级
     */
    List<NursingLevelVo> queryAllNursingLevel();

    /**
     * 新增护理等级
     */
    void addNursingLevel(NursingLevel nursingLevel);

    /**
     * 条件分页查询护理等级
     */
    Page<NursingLevelVo> PageQuery(String name, Integer status);

    /**
     * 根据id查询护理等级
     */
    NursingLevelVo getById(Integer id);


    /**
     * 修改护理等级
     */
    void updateNursingLevel(NursingLevel nursingLevel);

    /**
     * 删除护理等级
     */
    void deleteNursingLevel(Integer id);

    /**
     * 护理等级启用或禁用
     */
    void updateStatus(Integer id, Integer status);
}
